package com.perceptivesoftware.licensing.client.dialogs.useradmin.plugin.user;

import com.google.gwt.user.client.rpc.IsSerializable;
import com.perceptivesoftware.licensing.client.dto.PermissionsDTO;

public class UserDTO implements IsSerializable {

	private PermissionsDTO permissionsDTO;
	private String userCode;
	private String name;
	private String email;
	private Boolean isEmailDirty = false;

	@SuppressWarnings("unused")
	// for serialization
	private UserDTO() {

	}

	public UserDTO(final String userCode) {
		this.userCode = userCode;
	}

	public void setPermissionsDTO(final PermissionsDTO permissionsDTO) {
		this.permissionsDTO = permissionsDTO;
	}

	public PermissionsDTO getPermissionsDTO() {
		return permissionsDTO;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(final String userCode) {
		this.userCode = userCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(final String email) {
		this.email = email;
	}

	public Boolean getIsEmailDirty() {
		return isEmailDirty;
	}

	public void setIsEmailDirty(Boolean isEmailDirty) {
		this.isEmailDirty = isEmailDirty;
	}
}